
export default class GameControl extends Laya.Script {
  constructor () {
    super()
  }

  onEnable () {
    this.initLayas()
  }

  onMounted () {
    console.log(this.owner.params)
    this.layas.gameStage.addChild(this.owner.params.map)
  }

  // 初始化获取Laya节点
  initLayas () {
    this.layas = {}
    this.layas.gameBox = this.owner.getChildByName('gameBox')
    this.layas.gameStage = this.layas.gameBox.getChildByName('gameStage')
  }
}